package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.SpecificationValueEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by xbb on 2019/9/10.
 */
public interface SpecificationValueDao {

    Integer insert(SpecificationValueEntity specification);

    void insertBatch(@Param("list") List<SpecificationValueEntity> list);

    Integer update(SpecificationValueEntity specification);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    Integer deleteByKeys(@Param("keys") List<Long> keys, @Param("corpid") String corpid);

    SpecificationValueEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<SpecificationValueEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    Integer deleteByProductId(@Param("productId") Long productId, @Param("corpid") String corpid);
}
